package common;

/**
 * This enum lists all of the possible message types
 * exchanged between server and client.
 * 
 * @author Lukasz
 *
 */

public enum MessageType {
	
	CONNECT,			// registering with a nickname
	DISCONNECT,			// unregistering, being kicked out
	
	PING,				// keeping alive
	
	ROOM_CREATE,		// creating a conference room
	ROOM_LEAVE,			// leaving room does not automatically close the conference
	
	ROOM_INVITE,		// client -> server, invite a nickname
	ROOM_INVITATION,	// server -> client, you're being invited
	ROOM_JOIN,			//
	
	STATUS_SET,			// client -> server send your status to the clients
	STATUS_UPDATE,		// server -> client
	
	MESSAGE,			// the actual text message
	
	MEMBERS_UPDATE, 		// actual room's members
	BACKUP_SERVER
}
